package com.fishery.client;

import com.fishery.entity.Result;
import com.fishery.handler.RefrigeratoryServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * 加工厂模块的远程调用服务
 *
 * @author Ghost
 * @since 2021-1-30
 */
@FeignClient(value = "fishery-refrigeratory-service", fallback = RefrigeratoryServiceFallback.class)
public interface RefrigeratoryClient {

	/**
	 * 通过基地id获取所有冷库的面积
	 *
	 * @return
	 */
	@GetMapping("/refrigeratory/RefrigeratoryInfo/getAllArea/{id}")
	public Result selectAllArea(@PathVariable(value = "id", required = true) String baseId);

	/**
	 * 通过基地id获取所有冷库的数量
	 * @param baseId
	 * @return
	 */
	@GetMapping("/refrigeratory/RefrigeratoryInfo/getAllCount/{id}")
	public Result selectAllRefrigeratoryCount(@PathVariable(value = "id", required = true)  String baseId);

}
